import java.util.Scanner;

public class HJ4 {

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        while(sc.hasNextLine()){
            String str = sc.nextLine();
            StringBuilder sBuilder = new StringBuilder(str);
            //如果不是8的整数个字符
            if(str.length()%8 != 0){
                //补多少个0
                int num = 8-str.length()%8;
                for(int i=0;i<num;i++){
                    sBuilder.append("0");
                }
            }
            //循环输出
            while(sBuilder.length() != 0){
                System.out.println(sBuilder.substring(0,8));
                sBuilder.delete(0,8);
            }
        }

    }
}
